#ifndef PENCIL_H
#define PENCIL_H

#include "GraphicsArea/tooleffect.h"
#include <QtGui>

class DrawingArea;
class PImage;

class Pencil : public ToolEffect{
        Q_OBJECT
public:
    //************************************************************* Constructor
    Pencil(DrawingArea* drawingAreaUse,QDockWidget* dockInfoTool);
    //************************************************************* Affichage of Dock Tool Info
    void createAffichage();
    void changeAffichage(int val);
    //************************************************************* Pencil mouvement
    void initPencil(int x, int y);
    void designer(int x, int y);
    void endPainting();

private :
    int taille_Pencil;
    int x_Begin, y_Begin;
    QPainter *painter;
    QSpinBox *spinTaillePencil;
    QPushButton *okPencil ;
    QLabel *labelValPencil;

public slots:
    void changetaillePencilPlus();
    void changetaillePencilMoin();

};
#endif // PENCIL_H
